<el-row>
    <el-col :span="18">
        <div class="cent bg-purple-dark">

            <div class="navpoy">
                <span style="margin-left: 20px;">班级动态</span>
                <el-dropdown trigger="click">
                    <span class="el-dropdown-link">
                        排序<i class="el-icon-arrow-down el-icon--right"></i>
                    </span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item icon="el-icon-plus">黄金糕</el-dropdown-item>
                        <el-dropdown-item icon="el-icon-circle-plus">狮子头</el-dropdown-item>
                        <el-dropdown-item icon="el-icon-circle-plus-outline">螺蛳粉</el-dropdown-item>
                        <el-dropdown-item icon="el-icon-check">双皮奶</el-dropdown-item>
                        <el-dropdown-item icon="el-icon-circle-check">蚵仔煎</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <div style="position: absolute; right: 10px">
                    <el-button type="primary" icon="el-icon-edit" size="small" @click="onPosts"></el-button>
                    <el-button type="primary" icon="el-icon-search" size="small">搜索</el-button>
                </div>
            </div>
            {foreach $data['data'] as $key => $value}

            <div class="post-item">
                <div class="users-info">
                    <el-avatar src="{$value['user']['avatar']}"></el-avatar>
                    <div class="el-name">
                        <p class="username">{$value['user']['username']}</p>
                        <div style="margin-top: 4px;">
                            <el-tag size="mini"><i class="{$value['user']['sex']}"></i>&nbsp;{$value['user']['title']}
                            </el-tag><span class="po-time">{$value['time']}</span>
                        </div>
                    </div>
                </div>
                <a href="{:url('/../t', ['id' => $value['id']])}">
                    <div class="con" style="margin-top: 10px;">
                        <span class="tit" style="font-weight: bold;margin-left: 10px;">{$value['title']}</span>
                        <div class="con-text-{$key}"
                            style="margin: 2px 0px 0px 10px;overflow: hidden; text-overflow:ellipsis;white-space: nowrap;color: #b3b3b3;">
                            {$value['content']|raw}
                        </div>
                        <div class="con-imgs-{$key}" style="margin-top: 10px;">

                        </div>
                        <ul class="css-d1">
                            <li data-v-7651af5e="" class="item view">
                                <i class="vi"></i>
                                <span style="margin-left: 3px;">2874</span>
                            </li>
                            <li data-v-7651af5e="" class="item view">
                                <i class="lk"></i>
                                <span style="margin-left: 3px;">10</span>
                            </li>
                            <li data-v-7651af5e="" class="item view">
                                <i class="co"></i>
                                <span style="margin-left: 3px;">{$value['comments']}</span>
                            </li>
                        </ul>
                    </div>
                    <el-divider></el-divider>
            </div>
            </a>
            {/foreach}
            <div class="block" style="display: flex;justify-content: center;">
                <el-pagination layout="prev, pager, next" :total="{$total}" @current-change="handleCurrentChange"
                    :current-page.sync="currentPage">
                </el-pagination>
            </div>
        </div>
    </el-col>

    <el-col :span="6">
        <div class="sel">
            <div class="sel-mr">
                <el-card shadow="hover" :body-style="{ padding: '0px' }" style="margin-left: 20px;">
                    <div class="media-bg">
                        <div class="media-content"
                            style="background-image:url('https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg')">
                        </div>
                        <div class="avp">
                            <el-avatar :size="60" src="https://www.wpon.cn/wp-content/uploads/2021/07/1625887523.png">
                            </el-avatar>
                        </div>
                    </div>
                    <div class="jieshao">
                        <p style="font-weight: bold;">自由如风</p>
                        <div class="in">
                            <el-tag effect="dark" size="small">
                                站长
                            </el-tag>
                            <p>今天天气真好，自由如我</p>
                        </div>
                        <table style="margin-bottom: 10px;margin-top: 10px;">
                            <tr>
                                <td>
                                    <el-link :underline="false">意见反馈</el-link>
                                </td>
                                <td>
                                    <el-link :underline="false">关于我们</el-link>
                                </td>
                                <td>
                                    <el-link :underline="false">联系我们</el-link>
                                </td>

                            </tr>
                        </table>
                    </div>
                </el-card>
            </div>
            <div class="today" style="margin-top: 20px;">
                <el-card shadow="hover" :body-style="{ padding: '0px' }" style="margin-left: 20px;">
                    <div class="bha">
                        <div
                            style="background: url('https://www.wpon.cn/wp-content/uploads/2020/06/2020062301591674.jpg');background-size: cover;height: 300px;">
                            <div
                                style="background-color: rgba(0, 0, 0, 0.5);height: 300px;position: relative;z-index: 999;">
                                <div style="text-align: center;">
                                    <span style="font-size: 30px;color: #fff;line-height: 300px;">2019/12/9</span>
                                </div>
                            </div>


                        </div>

                    </div>
                </el-card>
            </div>
        </div>
    </el-col>
</el-row>